import React, {Component} from 'react';

class Navbar extends Component {
    render() {
        return (<div style={{backgroundColor: 'red', display: 'flex', justifyContent: 'space-between'}}>
            <button>back</button>
            <span>Navbar</span>
            <button onClick={this.props.changeIndex}>我的</button>
        </div>);
    }
}

export default Navbar;